net/netip.Addr.addr (field)
38 uses
net/netip (current package)
netip.go#L53: addr uint128
netip.go#L93: addr: uint128{0, 0xffff00000000 | uint64(addr[0])<<24 | uint64(addr[1])<<16 | uint64(addr[2])<<8 | uint64(addr[3])},
netip.go#L103: addr: uint128{
netip.go#L361: return uint8(ip.addr.lo >> ((3 - i) * 8))
netip.go#L367: return uint8(*(ip.addr.halves()[(i/8)%2]) >> ((7 - i%8) * 8))
netip.go#L373: return uint16(*(ip.addr.halves()[(i/4)%2]) >> ((3 - i%4) * 16))
netip.go#L426: hi1, hi2 := ip.addr.hi, ip2.addr.hi
netip.go#L433: lo1, lo2 := ip.addr.lo, ip2.addr.lo
netip.go#L468: return ip.Is6() && ip.addr.hi == 0 && ip.addr.lo>>32 == 0xffff
netip.go#L551: return ip.addr.hi == 0 && ip.addr.lo == 1
netip.go#L570: return ip.addr.hi>>(64-8) == 0xff // ip.v6(0) == 0xff
netip.go#L694: ip.addr = ip.addr.and(mask6(effectiveBits))
netip.go#L704: byteorder.BEPutUint64(a16[:8], ip.addr.hi)
netip.go#L705: byteorder.BEPutUint64(a16[8:], ip.addr.lo)
netip.go#L714: byteorder.BEPutUint32(a4[:], uint32(ip.addr.lo))
netip.go#L730: byteorder.BEPutUint32(ret[:], uint32(ip.addr.lo))
netip.go#L734: byteorder.BEPutUint64(ret[:8], ip.addr.hi)
netip.go#L735: byteorder.BEPutUint64(ret[8:], ip.addr.lo)
netip.go#L743: ip.addr = ip.addr.addOne()
netip.go#L745: if uint32(ip.addr.lo) == 0 {
netip.go#L750: if ip.addr.isZero() {
netip.go#L762: if uint32(ip.addr.lo) == 0 {
netip.go#L765: } else if ip.addr.isZero() {
netip.go#L768: ip.addr = ip.addr.subOne()
netip.go#L1018: b = byteorder.BEAppendUint32(b, uint32(ip.addr.lo))
netip.go#L1020: b = byteorder.BEAppendUint64(b, ip.addr.hi)
netip.go#L1021: b = byteorder.BEAppendUint64(b, ip.addr.lo)
netip.go#L1445: return uint32((ip.addr.lo^p.ip.addr.lo)>>((32-p.Bits())&63)) == 0
netip.go#L1450: return ip.addr.xor(p.ip.addr).and(mask6(p.Bits())).isZero()
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |